package sfeir.ergosum.myprofile;

import sfeir.ergosum.model.Contact;
import sfeir.ergosum.model.Person;
import android.app.Activity;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import android.widget.TextView;

public class MyProfileAboutActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Contact contact = (Contact) getIntent().getSerializableExtra("contact");
        Person p = contact.getPerson();

        LinearLayout root = new LinearLayout(MyProfileAboutActivity.this);

        TextView content = new TextView(MyProfileAboutActivity.this);
        content.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));

        content.setText(p.getAboutMe());
        root.addView(content);

        setContentView(root);

    }
}
